<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $template["title"]; ?></title>
    <link rel="stylesheet" href="style/index.css">
    <link rel="stylesheet" href="style/public.css">
    <link rel="stylesheet" href="style/publish.css">
    <link rel="stylesheet" href="style/register.css">
</head>
<body>
    <!-- 头部开始 -->
    <header>
        <!-- 头部栏 -->
        <div class="header_bar content-box">
            <!-- BBSlogo --> 
            <div class="logo">KUSE BBS</div>
            <!-- 首页地址 -->
            <div class="nav">
                <a class="hover">首页</a>
                <a class="hover">博客</a>
            </div>
            <!-- 搜索框 -->
            <div class="search">
                <form>
                    <input class="keyword" type="text" name="keyword" placeholder="搜索帖子">
                    <input class="submit" type="submit" name="submit" value="">
                </form>
            </div>
            <!-- 登录、注册 -->
            <div class="login">
                <?php
                if($member_id){
$str2 = <<<B
                    <a>您好！{$_COOKIE['kuse']['name']}</a>
B;                  
                    echo $str2;
                }else{
$str = <<<A
                <a href="">登录</a>&nbsp;
                <a href="">注册</a>
A;
                    echo $str;
                }
                ?>
                
            </div>
        </div>
    </header>
    <!-- 头部结束 -->